/* 首页新闻中心页面样式 */

#newsListInternal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 6rem;
  /* justify-content: space-between; */
}
.news-cards {
  width: 25%;
  height: 390px;
  cursor: pointer;
  margin-bottom: 20px;
}
.news-cards:hover .qishuClass > div {
  background: var(--primary-color);
  color: #fff;
}
.news-cards:hover .news-images > img {
  border: 5px solid var(--primary-color);
}
.news-images {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  width: 90%;
  height: 350px;
  object-fit: contain;
  background-image: url("https://oss.allintrip.cn/shanwentou/magazine/bz_bg.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  img {
    width: 214px;
    height: 300px;
    object-fit: contain;
  }
}
.qishuClass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  div {
    cursor: pointer;
    color: #000;
    border-radius: 100px;
    border: 1px solid #e2e2e2;
    padding: 3px 20px;
    &:hover {
    }
  }
}

/* 媒体聚焦卡片轮播样式 */
.media-carousel-container {
  width: 100%;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.media-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 10px;
}

.media-carousel-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}

.media-carousel-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.media-carousel-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.media-carousel-indicator {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.media-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #8a8a8a;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.media-carousel-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  background-size: 400% 400%;
  z-index: -1;
  animation: rainbow-border 3s ease infinite;
}

.media-carousel-btn:not([disabled]):hover {
  background: #6a6a6a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-carousel-btn:not([disabled]):hover::before {
  animation-duration: 1s;
}

.media-carousel-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  background: #a0a0a0;
}

@keyframes rainbow-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.media-news-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.media-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-news-card:hover .media-card-image img {
  transform: scale(1.05);
}

.media-card-title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.media-card-title {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.media-card-content {
  padding: 14px;
}

.media-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.media-card-date {
  font-size: 12px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .media-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .media-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .media-carousel-container {
    padding: 20px 10px;
  }

  .media-carousel-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .media-carousel-title {
    font-size: 22px;
  }

  .media-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .media-card-image {
    height: 140px;
  }
}
.top-news-content-left {
  width: 100%;
  height: 100%;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-right: 30px;
  img {
    transition: 0.3s;
  }
}

/* 顶部轮播控制：左右箭头 + 圆点（仅列表页顶部区域） */
.top-news-left-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}
.top-news-left-carousel-arrow.prev {
  left: 12px;
}
.top-news-left-carousel-arrow.next {
  right: 12px;
}
.top-news-left-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.05);
}
.arrow-icon {
  width: 20px;
  height: 20px;
}
.arrow-left {
  transform: rotate(-180deg);
}

.top-news-left-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.top-news-left-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.top-news-left-carousel-dot.active {
  background: #d81e06; /* 高亮色 */
}

.top-news-content-left-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.top-news-content-left-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-news-content-left-title {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.top-news-content-left-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.top-news-content-left-desc {
  color: #fff;
  opacity: 0.8;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.top-news-content-left-time {
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.top-news-content-right {
  width: 33.4%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.top-news-grid-item-first {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.top-news-grid-item-img-first {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.top-news-item-2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-news-grid-item {
  padding: 0.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.37);
}

.top-news-grid-item-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-news-grid-item-img img {
  width: 100%;
}

.top-news-grid-item-title {
  margin: 0.05rem 0;
}

.top-news-main {
  height: 50%;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.4rem;
  overflow: hidden;
}

.top-news-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.top-news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-news-item {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  gap: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.top-news-item-img {
  width: 30%;
  object-fit: contain;
  overflow: hidden;
  flex-shrink: 0;
  overflow: hidden;
}

.top-news-item:hover .top-news-item-img {
  transform: translateY(0px) scale(1.03);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08);
}

.top-news-main:hover .top-news-main-img,
.top-news-content-left:hover {
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1.5px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(0px) scale(1.03);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08); */
  cursor: pointer;
  img {
    transform: translateY(0px) scale(1.03);
    transition: 0.3s;
  }
}

.top-news-main:hover,
.top-news-item:hover,
.top-news-content-left:hover {
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1.5px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(0px) scale(1.03);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08); */
  cursor: pointer;
  img {
    transform: translateY(0px) scale(1.03);
    transition: 0.3s;
  }
}
